<div id="one-zone-first">
    <div id="one-zone-first-content">
	
		<br>
		<!-- MODE: update a tab -->
		<h2 class="page-title" >#i18n{customisation.xpage.tab.title_management_update_tab} : ${one_tab.nameTab}</h2>

		<br>
						
		<!-- Button to update a tab -->
		<form method="post" action="jsp/site/Portal.jsp?page=customisation" />
		<table class="data-table">
			<tr>
				<td>
					<label>#i18n{customisation.xpage.name_tab_required}</label>
				</td>
				<td>
					<input type=text name="text_name_tab" value="${one_tab.nameTab}" />
				</td>
			</tr>
			<tr>
				<td>
					<label>#i18n{customisation.create_customisation.labelOrder}</label>
				</td>
				<td>
					<@combo name="order_tab" default_value="${one_tab.orderTab}" items=combo_order_tab />
				</td>
			</tr>
			<tr>
				<td>
					<label>#i18n{customisation.xpage.theme_tab}</label>
				</td>
				<td>
					<@combo name="choice_theme" default_value="${one_tab.codeTheme}" items=page_themes_list />
				</td>
			</tr>
			<tr>
				<td>
					<label>#i18n{customisation.xpage.template_tab}</label>
				</td>
				<td>
					<table class="data-table" >
						<#list customisation_list_template as list_template >
						<tr>
							<td>
								${list_template.description}
							</td>
							<td>
								<img src="images/admin/page_templates/${list_template.picture}" />
							</td>
							<td>
								<#if one_tab.idTemplate = list_template.id > <!-- Tab's template -->
									<input type=radio name="choice_template" value="${list_template.id}" checked/>
								   <#else>
									<input type=radio name="choice_template" value="${list_template.id}" />
								</#if>
							</td>
						</tr>
						</#list>
					</table>
				</td>
			</tr>
		</table>
		
		<table border="0" >
			<td>
					<input type=hidden name="action" value="update_tab" />
					<input type=hidden name="update_tab" value="${one_tab.idTab}" />
					<input type=submit value="#i18n{customisation.create_customisation.buttonLabelUpdate}" />
				</form>
			</td>
			<td>
				<form method="post" action="#" >
					<input type=button onClick="javascript:history.go(-1)" value="#i18n{customisation.create_customisation.buttonLabelCancel}" />       
				</form>
			</td>
		</table>
		<br>
	</div>
</div>